package com.tchintech.pay.server;


import com.tchintech.pay.model.entity.ResultBean;

import org.json.JSONObject;

import retrofit.http.Body;
import retrofit.http.Field;
import retrofit.http.FormUrlEncoded;
import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Path;
import retrofit.http.Query;
import rx.Observable;

/**
 *
 *
 * @todo
 * @auth John
 * Created  on 2016/5/19 0019.
 */
public interface CommitApi {

//    @GET("writeObjectOut")
//    Observable<String> commitAnyThing(@Query("fn") int fn,@Query("json") String json,@Query("memberinfo") String memberinfo);
//
//    @Multipart
//    @POST("writeObjectOut")
//    Observable<String> commitBigThing(@Query("fn") int fn, @Body String json, @Query("memberinfo") String memberinfo);

    @GET("{path}")
    Observable<String> commitAnyThing(@Path("path") String path,@Query("json") String json, @Query("memberinfo") String memberinfo);


    @POST("{path}")
    Observable<String> commitBigThing(@Path("path") String path,@Query("json") String json, @Query("memberinfo") String memberinfo);

     //齐智能
   /*  @POST("Merchant/login")
    Observable<String> commitLogin(@Query("json") String json);*/

    @POST("Merchant/login")
    Observable<String> commitLogin(@Body String json);


   /* @POST("{path}")
    Observable<String> commitLogin(@Path("path") String path,@Query("json") String json);*/

}